package io.github.talelin.latticy.dto.article;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author pedro@TaleLin
 * @author Juzi@TaleLin
 */
@Data
@NoArgsConstructor
public class ExpressDTO {

    @NotNull
    private Integer uid;

    @NotBlank
    @Length(min = 1, max = 60)
    private String userName;

    @NotBlank
    @Length(min = 1, max = 255)
    private String userAvatar;

    @NotBlank
    @Length(min = 1, max = 255)
    private String text;

    @Length(min = 1, max = 255)
    private String picture;

    @Length(min = 1, max = 255)
    private String video;

    @NotNull
    private Integer type;
}
